package com.atguigu.ssyx.payment.service;

import com.atguigu.ssyx.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @描述:
 * @作者:胡树苑
 * @时间:2025/9/25 05:10
 */
public interface PaymentInfoService extends IService<PaymentInfo> {
    //根据orderNo查询支付记录
    PaymentInfo getPayMentInfoByOrderNo(String orderNo);
    //添加支付记录
    PaymentInfo savePaymentInfo(String orderNo);
    //支付成功，修改支付记录表状态，改为已经支付
    //支付成功，修改订单记录改为已经支付
    //支付成功，修改订单记录已经支付，库存扣减
    void paySuccess(String outTradeNo, Map<String, String> resultmap);
}
